using System;

[Serializable]
public struct AnimationAreaDamage
{
	public enum MethodToPlay
	{
		AnimatorPlay,
		AnimatorPlayInMove,
		AnimatorPlayStand,
		SwitchBreakLeg,
		SwitchMoveBreakLeg,
		SwitchMoveLame
	}

	public string state;

	public MethodToPlay method;

	public void PlayState(ZombieInHome zombie)
	{
		if (method == MethodToPlay.AnimatorPlay)
		{
			zombie.AnimatorPlay(state);
		}
		else if (method == MethodToPlay.AnimatorPlayInMove)
		{
			zombie.AnimatorPlayInMove(state);
		}
		else if (method == MethodToPlay.AnimatorPlayStand)
		{
			zombie.AnimatorPlayStand(state);
		}
		else if (method == MethodToPlay.SwitchBreakLeg)
		{
			zombie.SwitchBreakLeg(state);
		}
		else if (method == MethodToPlay.SwitchMoveBreakLeg)
		{
			zombie.SwitchMoveBreakLeg();
			zombie.AnimatorPlayStand(state);
		}
		else if (method == MethodToPlay.SwitchMoveLame)
		{
			zombie.SwitchMoveLame();
		}
	}
}
